use sky_takeout::utils::amap;
use tokio;

#[tokio::main]
async fn main() {
    dotenv::dotenv().ok();

    let src = "118.787681,31.944932".to_string();
    let dest = "118.934449,32.126088".to_string();

    // 调用函数
    match amap::directionlite(src, dest).await {
        Ok(location) => {
            println!("距离: {:?}", location);
        }
        Err(err) => {
            eprintln!("获取距离失败: {}", err);
        }
    }
}
